package com.yunfeisoft.business.model;

import com.applet.base.ServiceModel;
import com.applet.sql.record.TransientField;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * ClassName: SmsFlashPromotionProductRelation
 * Description: 商品限时购与商品关系表
 *
 * @Author: Jackie liu
 * Date: 2020-06-02
 */
@Entity
@Table(name = "SMS_FLASH_PROMOTION_PRODUCT_RELATION")
public class SmsFlashPromotionProductRelation extends ServiceModel implements Serializable {

    /**
     * Field serialVersionUID: 序列号
     */
    private static final long serialVersionUID = 1L;

    /**
     * 限时购id
     */
    @Column
    private String flashPromotionId;

    /**
     * 限时购场次id
     */
    @Column
    private String flashPromotionSessionId;

    /**
     * 产品id
     */
    @Column
    private String productId;

    /**
     * 限时购价格
     */
    @Column
    private BigDecimal flashPromotionPrice;

    /**
     * 限时购数量
     */
    @Column
    private Integer flashPromotionCount;

    /**
     * 每人限购数量
     */
    @Column
    private Integer flashPromotionLimit;

    /**
     * 排序
     */
    @Column
    private Integer sort;

    @TransientField
    private String flashPromotionTitle;
    @TransientField
    private String flashPromotionSessionName;
    @TransientField
    private String productName;
    @TransientField
    private BigDecimal productPrice;

    public String getFlashPromotionId() {
        return flashPromotionId;
    }

    public void setFlashPromotionId(String flashPromotionId) {
        this.flashPromotionId = flashPromotionId;
    }

    public String getFlashPromotionSessionId() {
        return flashPromotionSessionId;
    }

    public void setFlashPromotionSessionId(String flashPromotionSessionId) {
        this.flashPromotionSessionId = flashPromotionSessionId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public BigDecimal getFlashPromotionPrice() {
        return flashPromotionPrice;
    }

    public void setFlashPromotionPrice(BigDecimal flashPromotionPrice) {
        this.flashPromotionPrice = flashPromotionPrice;
    }

    public Integer getFlashPromotionCount() {
        return flashPromotionCount;
    }

    public void setFlashPromotionCount(Integer flashPromotionCount) {
        this.flashPromotionCount = flashPromotionCount;
    }

    public Integer getFlashPromotionLimit() {
        return flashPromotionLimit;
    }

    public void setFlashPromotionLimit(Integer flashPromotionLimit) {
        this.flashPromotionLimit = flashPromotionLimit;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getFlashPromotionTitle() {
        return flashPromotionTitle;
    }

    public void setFlashPromotionTitle(String flashPromotionTitle) {
        this.flashPromotionTitle = flashPromotionTitle;
    }

    public String getFlashPromotionSessionName() {
        return flashPromotionSessionName;
    }

    public void setFlashPromotionSessionName(String flashPromotionSessionName) {
        this.flashPromotionSessionName = flashPromotionSessionName;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public BigDecimal getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(BigDecimal productPrice) {
        this.productPrice = productPrice;
    }
}